package com.ibeetl.admin.console.entity;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.SeqID;

import com.ibeetl.admin.core.util.ValidateConfig;

import org.beetl.sql.core.TailBean;

import java.math.*;

import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity;

import org.beetl.sql.core.annotatoin.InsertIgnore;
import org.beetl.sql.core.annotatoin.Version;
import org.beetl.sql.core.annotatoin.LogicDelete;


/* 
* 
* gen by Spring Boot2 Admin 2018-06-13
*/
public class CoreCustomer extends BaseEntity {

    //id
    @NotNull(message = "ID不能为空", groups = ValidateConfig.UPDATE.class)
    @SeqID(name = ORACLE_CORE_SEQ_NAME)
    @AutoID

    private Integer id;

    //客户名称

    private String name;

    //客户性别

    private String sex;

    //客户地址

    private String address;

    /*逻辑删除标志*/
    @InsertIgnore
    @LogicDelete(value = 1)

    private Integer delFlag;

    //创建时间

    private Date createdAt;

    public CoreCustomer() {
    }

    /**
     * id
     *
     * @return
     */
    public Integer getId() {
        return id;
    }

    /**
     * id
     *
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 客户名称
     *
     * @return
     */
    public String getName() {
        return name;
    }

    /**
     * 客户名称
     *
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 客户性别
     *
     * @return
     */
    public String getSex() {
        return sex;
    }

    /**
     * 客户性别
     *
     * @param sex
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * 客户地址
     *
     * @return
     */
    public String getAddress() {
        return address;
    }

    /**
     * 客户地址
     *
     * @param address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    /**
     * 创建时间
     *
     * @return
     */
    public Date getCreatedAt() {
        return createdAt;
    }

    /**
     * 创建时间
     *
     * @param createdAt
     */
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }


}
